<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Mostrar Noticias</title>
<%@ page import="com.guarderia.bean.*,java.util.*,com.guarderia.utils.UtilidadesGenerales" %>
<%!
ArrayList noticias;
NoticiaBean noticia;
%>
<%
	noticias = session.getAttribute("noticias") != null ? (ArrayList)session.getAttribute("noticias") : new ArrayList();
%>
</head>
<body>
	<%
	for (int i=0; i<noticias.size();i++){
		noticia = (NoticiaBean)noticias.get(i);
	%>
	<div class="noticia">
		<div class="titulo"><%=noticia.getTitulo()%>(<%=UtilidadesGenerales.convertirGregorianCalendarEnString(noticia.getFecha())%>)</div>
		<div class="subtitulo"><%=noticia.getSubtitulo()%></div>
		<div class="descripcion"><%=noticia.getDescripcion()%></div>
	</div>
	<% if (i+1 != noticias.size()){%>
	<hr>
	<%} %>
	<%} %>
</body>
</html>